﻿using System.Xml.Linq;

namespace SharePoint.Orm.Caml {
	public abstract class CamlValueChild : CamlExpr {
	}

	public class CamlTextValue : CamlValueChild {
		public CamlTextValue() {
		}

		public CamlTextValue(string value) {
			Value = value;
		}
		
		public string Value { get; set; }

		public override XObject ToXml() {
			return new XText(Value);
		}
	}
	
	public class CamlCurrentUser : CamlValueChild {
		public override XObject ToXml() {
			return new XElement("UserID", new XAttribute("Type", "Integer"));
		}
	}
}
